<? //print_r($invoices) ?>
<ul data-role="listview" data-inset="true" data-divider-theme="b">
    <li data-role="list-divider">{Payment Details}</li>
    <li>
        <div class="payment_details">
           <div><span><?=lang('label_shiping_rate')?></span><label><?= $invoices['Shiping_rate'] ?></label></div>
            <div><span>{Additional}</span><label><?= $invoices['Additional'] ?></label></div>
            <?
            if (!empty($invoices['Perfum'])) {
                ?>
                <div><span>{Total_perfum}</span><label><?= $invoices['Perfum'] ?></label></div>
                <?
            }
            if (!empty($invoices['Battery'])) {
                ?>
                <div><span>{Total_battery}</span><label><?= $invoices['Battery'] ?></label></div>
                <?
            }
            ?>
           
            
            <div><span><?=lang('label_total')?></span><label><?= $invoices['Total'] ?></label></div>
        </div>

    </li>

</ul>

<div data-role="collapsible-set" data-theme="b" data-content-theme="c">

 <form action="<?= base_url() ?><?= get_segment(1) ?>/creatbill" method="post">
     
    <div data-role="collapsible" data-collapsed="false" >
        <h2>{MY Box}</h2>
        <ul data-role="listview" data-filter="true" data-filter-theme="c" data-divider-theme="d">
            <input type="hidden" name="count" value="<?=count($result)?>"/>
            <?
            $r = 0;
            foreach ($result as $val) {
                $statues = get_statues($val->statue_id);
                $r++;

                ?>
                <input type="hidden" value="<?=$val->id?>" name="id_<?=$r?>" class="id"/>
                <li data-role="list-divider" data-theme="c" style="padding:5px 3px; ">
                    <span class="order_create_date">
                        {Create_date} : <?= $val->create_date ?></span>

                </li>
                <li>
                    <h1> <a href="<?= base_url() ?>orders/view/<?= $val->id ?>" class="ui-link-inherit"><? if (!empty($val->store)) { ?>[<?= $val->store ?>]<? } ?> <?= $val->title ?></a></h1> 
                    <h1 class="item_title"><?= $statues->title ?> </h1>
                    <h1 class="item_title"><?=lang('label_weight')?> : <?= $val->weight ?> {LBS}</h1>
                    <h1 class="item_title"><?=lang('label_quantity')?> : <?= $val->quantity ?></h1>
                    <h1 class="item_title">
                        <? if ($val->battery == 'YES') { ?><span class="battery">{battery}</span> <? } ?>
                        <? if ($val->perfum == 'YES') { ?><span class="perfum">{perfum}</span> <? } ?>
                    </h1>

                </li>

                <?
            }
            ?>
        </ul>
    </div>
     <input type="submit" data-ajax="true" value="{Create Box bill}" name="send" data-theme="b" data-icon="plus" data-iconpos="right" />
 </a>

</div>

